import { service } from "@/axios/index";

export const userLogin = (params) => {
  let url = "/sel/login";
  return service.post(url, params).then((response) => {
    return response.data;
  });
};

export const getUserPurview = (params) => {
  let url = "/sel/toTreeLoad";
  return service.post(url, params).then((response) => {
    return response.data;
  });
};

export const getTenantInfo = (url) => {
  return service.get(url).then((response) => {
    return response.data;
  });
};
